public class ArcNode {
    public Flight data;      //数据域
    public VNode adjVex;   //下一个站点
    public int value;   //时间或票价

    public ArcNode() {
    }

    public ArcNode(Flight data, int value) {
        this.data = data;
        this.value = value;
    }

    public ArcNode(Flight data, VNode adjVex, int value) {
        this.data = data;
        this.adjVex = adjVex;
        this.value = value;
    }

    @Override
    public String toString() {
        return data + "" + adjVex + "  票价" + value;
    }
}
